package com.ss.android.pay;

import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelpay.PayReq;
import com.tencent.mm.opensdk.openapi.IWXAPI;

public final class m extends e {
    IWXAPI a;
    boolean b;
    String d;

    m(IWXAPI arg2, h arg3, j arg4) {
        super(arg3, arg4);
        this.b = false;
        this.d = null;
        this.a = arg2;
    }

    protected final void a() throws PayException {
        PayReq v0 = new PayReq();
        v0.appId = this.c.d;
        v0.partnerId = this.c.c;
        v0.prepayId = this.c.e;
        v0.nonceStr = this.c.f;
        v0.timeStamp = this.c.b;
        v0.packageValue = "Sign=WXPay";
        v0.sign = this.c.a;
        if(!this.a.sendReq(((BaseReq)v0))) {
            throw new PayException(com.ss.android.article.browser.R.string.jr);
        }
    }

    protected final void a(String arg2, j arg3) {
        if("0".equals(arg2)) {
            arg3.a(0, arg2);
        }
        else if("-2".equals(arg2)) {
            arg3.a(-1, arg2);
        }
        else {
            arg3.a(-2, arg2);
        }
    }

    public final String c() {
        String v0 = this.c != null ? this.c.e : null;
        return v0;
    }
}

